package com.apm.test.service;

import cn.hserver.core.ioc.annotation.Bean;

import java.util.concurrent.TimeUnit;

@Bean
public class UserService {

    public String sayHello(String a,String b,String c){
        try {
            TimeUnit.MILLISECONDS.sleep(13);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "hello";
    }


    public String getInfo(String c)  {
        try {
            TimeUnit.MILLISECONDS.sleep(12);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "userInfo";
    }

    public String getData() {
        try {
            TimeUnit.MILLISECONDS.sleep(12);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        int id=1;
        return sayHello(null,null,null)+getInfo(null);
    }

}
